<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Makul extends Controller {

    public function __construct() {
        parent::__construct();

//        echo 'dashboard ctrl';

        Session::init();

        $loggeg = Session::get('loggedIn');
        $role = Session::get('role');

        if ($loggeg == false || $role != 'Admin') {
            Session::Destroy();
            header('location: '.URL.'error/index');
            exit;
        }
//        print_r($_SESSION['role']);
    }

    public function index() {

        $this->view->render('makul/index');
    }
    public function list_makul (){
        
    }

}

?>
